home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
System Booster
/
System Booster.iso
/
Archives
/
ForCLI
/
0Utils13.lha
/
0Utils
/
ScriptName.doc
< prev
next >
Wrap
Text File
|
1995-03-20
|
944b
|
47 lines
NAME
ScriptName
SYNOPSIS
ScriptName - output the name of the current script - Requires v37
INPUTS
(none)
FUNCTION
ScriptName just tries to output the contents of
process->cli->commandfile. this value is defined only,
if:
1) the command was called from inside a script, AND
2) the script had to be buffered in "T:Command-??-???"
this is, e.g. if the script contained a ".KEY"
directive or was read from an interactive device.
RESULT
"T:Command-xx-Tyy" if possible.
NOTES
CLI - only
should compile with SAS-C
BUGS
If not run from within a script produces error
ERROR_OBJECT_WRONG_TYPE (I found no better error)
EXAMPLES
>ScriptName
"ScriptName: object is not of required type"
(Was: "* Not in a Script *")
>echo "scriptname" | srun execute in:
"T:Command-00-T04"
AUTHOR
Bernd Noll, Brunnenstrasse 55, D-67661 Kaiserslautern
noll@student.uni-kl.de